from django.conf.urls.defaults import *
from petra.views import index
from petra.rsdownloads.views import *
from petra.rschecker.views import *
from django.conf import settings

urlpatterns = patterns('',
    # Example:
    # (r'^petra/', include('petra.foo.urls')),

    # Uncomment this for admin:
     (r'^admin/', include('django.contrib.admin.urls')),

	(r'^downloads/(?P<download_id>\d+)/start/', start_download),
	(r'^downloads/(?P<download_id>\d+)/status/', view_download_status),
	(r'^downloads/(?P<download_id>\d+)/alter_priority/', alter_download_priority),
	(r'^downloads/(?P<download_id>\d+)/', view_download),
	(r'^downloads/latests/', latests_downloads),
	(r'^downloads/add/', add_download),
	(r'^downloads/addall/', add_multiple_downloads),
	
	(r'^static_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),

	(r'^checker/fetch/', links_checker_fetch),	
	(r'^checker/check/', links_checker_check),
	(r'^checker/', links_checker_index),

	(r'', index),
)
